﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Xpo;
using Zero.POCO.Compagne;

namespace Zero.DataLayer.Donnees
{
    public class XpoInsertionRadio: XPBaseObject
    {
          public XpoInsertionRadio()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

          public XpoInsertionRadio(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }



          private Guid _Oid;
          [Key]
          public Guid Oid
          {
              get { return _Oid; }
              set { SetPropertyValue("Oid", ref _Oid, value); }
          }


          private XpoSupportRadio _SupportRadio;
          public XpoSupportRadio SupportRadio
          {
              get { return _SupportRadio; }
              set { SetPropertyValue("SupportRadio", ref _SupportRadio, value); }
          }


          private int _NumeroQuartHeure;
          public int NumeroQuartHeure
          {
              get { return _NumeroQuartHeure; }
              set { SetPropertyValue("NumeroCinQMinute", ref _NumeroQuartHeure, value); }
          }

          private DateTime _Date;
          public DateTime Date
          {
              get { return _Date; }
              set { SetPropertyValue("Date", ref _Date, value); }
          }


          private XpoPlanRadio _XpoPlanRadio;
          [ Association("XpoPlanRadio-XpoInsertionRadio")]
          public XpoPlanRadio XpoPlanRadio
          {
              get { return _XpoPlanRadio; }
              set { SetPropertyValue("XpoPlanRadio", ref _XpoPlanRadio, value); }
          }


          [Association("XpoInsertionRadios-Signalitique")]
          public XPCollection<Signalitique> Signalitiques
          {
              get { return GetCollection<Signalitique>("Signalitiques"); }
          }
    }
}
